<?php

namespace app\api\model;

use think\Model;

class CertificateCollect extends Model
{
    protected $autoWriteTimestamp = 'integer';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    public function certificate()
    {
        return $this->belongsTo('app\api\model\Certificate', 'certificate_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
